<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../dist/vue.js"></script>
    <div id="app">
        <my>
            <template slot-scope="{article}">
                <h1 slot="article.title">标题</h1>
                <div slot="article.content">内容</div>
            </template>
        </my>
    </div>
    <script>
        Vue.component('my',{
            template:`<div>
                <slot :article="{title:'标题',content:'内容'}"></slot>
            </div>`
        })
        const vm = new Vue({
            el:'#app'
        })

    </script>
</body>
</html>